package org.jash.mvp2206.news;

import org.jash.mvp2206.entity.AllCategory;
import org.jash.mvp2206.entity.TopHot;
import org.jash.mvp2206.mvp.BaseModel;

import io.reactivex.rxjava3.core.Observable;

public class NewsCategoryModel extends BaseModel implements Construct.INewsCategoryModel {
    @Override
    public Observable<AllCategory> getAllCategories() {
        return server.getCategories();
    }

    @Override
    public Observable<TopHot> getTopHot() {
        return server.getTopHot();
    }
}
